﻿using System;
using System.Reflection;

namespace TC
{
    [Menu("Function/ReflectStaticProperty")]
    public class ReflectStaticProperty : VariableNode
    {
        public Type classType;
        public PropertyInfo property;

        public ValueOutput<object> valueOut;

        public override void OnCreate()
        {
            base.OnCreate();

            valueOut = this.AddValueOutPort<object>("valueOut",
                () =>
                {
                    return property.GetValue(null);
                });
        }
    }
}
